import request from '@/utils/request'

// 查询直播账号管理列表
export function listAuthor(query) {
  return request({
    url: '/hmk/author/list',
    method: 'get',
    params: query
  })
}

export function simpleList(query) {
  return request({
    url: '/hmk/author/simpleList',
    method: 'get',
    params: query
  })
}

// 查询直播账号管理详细
export function getAuthor(id) {
  return request({
    url: '/hmk/author/' + id,
    method: 'get'
  })
}

// 新增直播账号管理
export function addAuthor(data) {
  return request({
    url: '/hmk/author',
    method: 'post',
    data: data
  })
}

// 修改直播账号管理
export function updateAuthor(data) {
  return request({
    url: '/hmk/author',
    method: 'put',
    data: data
  })
}

// 删除直播账号管理
export function delAuthor(id) {
  return request({
    url: '/hmk/author/' + id,
    method: 'delete'
  })
}
